package com.acc.mobileappr.entities;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

/**
 * Created by IntelliJ IDEA.
 * User: user
 * Date: Apr 20, 2011
 * Time: 10:54:49 AM
 * To change this template use File | Settings | File Templates.
 */
@javax.persistence.Table(name = "MST_M_APPR_USER", schema = "ACC_BBMX")
@Entity
public class MstMApprUserEntity {
    private String userPin;

    @javax.persistence.Column(name = "USER_PIN")
    @Id
    public String getUserPin() {
        return userPin;
    }

    public void setUserPin(String userPin) {
        this.userPin = userPin;
    }

    private String userName;

    @javax.persistence.Column(name = "USER_NAME")
    @Basic
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    private String password;

    @javax.persistence.Column(name = "PASSWORD")
    @Basic
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    private String userId;

    @javax.persistence.Column(name = "USER_ID")
    @Basic
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    private String bbModel;

    @javax.persistence.Column(name = "BB_MODEL")
    @Basic
    public String getBbModel() {
        return bbModel;
    }

    public void setBbModel(String bbModel) {
        this.bbModel = bbModel;
    }

    private String bbVersion;

    @javax.persistence.Column(name = "BB_VERSION")
    @Basic
    public String getBbVersion() {
        return bbVersion;
    }

    public void setBbVersion(String bbVersion) {
        this.bbVersion = bbVersion;
    }

    private String status;

    @javax.persistence.Column(name = "STATUS")
    @Basic
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    private Date createdDate;

    @javax.persistence.Column(name = "CREATED_DATE")
    @Basic
    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    private Date updatedDate;

    @javax.persistence.Column(name = "UPDATED_DATE")
    @Basic
    public Date getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }

    private String passwordStatus;

    @javax.persistence.Column(name = "PASSWORD_STATUS")
    @Basic
    public String getPasswordStatus() {
        return passwordStatus;
    }

    public void setPasswordStatus(String passwordStatus) {
        this.passwordStatus = passwordStatus;
    }

    private String createdBy;

    @javax.persistence.Column(name = "CREATED_BY")
    @Basic
    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    private String updatedBy;

    @javax.persistence.Column(name = "UPDATED_BY")
    @Basic
    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MstMApprUserEntity that = (MstMApprUserEntity) o;

        if (bbModel != null ? !bbModel.equals(that.bbModel) : that.bbModel != null) return false;
        if (bbVersion != null ? !bbVersion.equals(that.bbVersion) : that.bbVersion != null) return false;
        if (createdBy != null ? !createdBy.equals(that.createdBy) : that.createdBy != null) return false;
        if (createdDate != null ? !createdDate.equals(that.createdDate) : that.createdDate != null) return false;
        if (password != null ? !password.equals(that.password) : that.password != null) return false;
        if (passwordStatus != null ? !passwordStatus.equals(that.passwordStatus) : that.passwordStatus != null)
            return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (updatedBy != null ? !updatedBy.equals(that.updatedBy) : that.updatedBy != null) return false;
        if (updatedDate != null ? !updatedDate.equals(that.updatedDate) : that.updatedDate != null) return false;
        if (userId != null ? !userId.equals(that.userId) : that.userId != null) return false;
        if (userName != null ? !userName.equals(that.userName) : that.userName != null) return false;
        if (userPin != null ? !userPin.equals(that.userPin) : that.userPin != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = userPin != null ? userPin.hashCode() : 0;
        result = 31 * result + (userName != null ? userName.hashCode() : 0);
        result = 31 * result + (password != null ? password.hashCode() : 0);
        result = 31 * result + (userId != null ? userId.hashCode() : 0);
        result = 31 * result + (bbModel != null ? bbModel.hashCode() : 0);
        result = 31 * result + (bbVersion != null ? bbVersion.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (createdDate != null ? createdDate.hashCode() : 0);
        result = 31 * result + (updatedDate != null ? updatedDate.hashCode() : 0);
        result = 31 * result + (passwordStatus != null ? passwordStatus.hashCode() : 0);
        result = 31 * result + (createdBy != null ? createdBy.hashCode() : 0);
        result = 31 * result + (updatedBy != null ? updatedBy.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "MstMApprUserEntity{" +
                "userPin='" + userPin + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", userId='" + userId + '\'' +
                ", bbModel='" + bbModel + '\'' +
                ", bbVersion='" + bbVersion + '\'' +
                ", status='" + status + '\'' +
                ", createdDate=" + createdDate +
                ", updatedDate=" + updatedDate +
                ", passwordStatus='" + passwordStatus + '\'' +
                ", createdBy='" + createdBy + '\'' +
                ", updatedBy='" + updatedBy + '\'' +
                '}';
    }
}
